﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dbPoll_Application.ViewModels.PollReportViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">DemographicReportTextual</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" src="../../Scripts/Report.js"></script>
    
    <div class="pageHeadingContainer"><h2 class="pageHeading">Poll Reports</h2></div>
    <p><%= Html.ActionLink("Polls > ", "Index", "Poll", null, new { @class = "breadcrumb" })%><%= Model.name %></p>
    <div id="pageMenuContainer">
        <span id="launchScreen"><%= Html.ActionLink("Go back to reports", "Reports", new { pollID = Model.pollID })%></span>
        <ul id="pageMenu">
            <li><%= Html.ActionLink("Details", "Questions", new { pollID = Model.pollID }) %></li>
            <li><%= Html.ActionLink("Run", "SetSession", new { pollID = Model.pollID }) %></li>
            <li><%= Html.ActionLink("Test", "Test", new { pollID = Model.pollID }) %></li>
            <li>Reports</li>
            <li><%= Html.ActionLink("Manage Hierarchy", "EntityHierarchy", new { pollID = Model.pollID })%></li>
        </ul>
    </div>
    <div><%using (Html.BeginForm("DemographicReportTextual", "Poll"))
           { Html.RenderPartial("Demographic", Model); }%></div>
    <% using (Html.BeginForm("QuestionReportTextualPlain","Poll",Model,FormMethod.Post)) { %>
    <input type="hidden" id="pollID" name="PollID" value="<%=Model.pollID %>" />
    <input type="submit" value="Generate PDF" /><%}%>
    <% Html.RenderPartial("ReportTextual", Model); %>
</asp:Content>
